//
//  CellGenerator.m
//  CodeGenerator
//
//  Created by 丁玉松 on 2017/9/18.
//  Copyright © 2017年 Beijing Yingyan Internet Co., Ltd. All rights reserved.
//

#import "CellGenerator.h"
#import "DMGParameter.h"
#import "NSString+FileHandle.h"

@implementation CellGenerator


-(void)yyi_writeAPIWithClsName:(NSString *)clsName parameterArray:(NSArray *)parameterArray toFilePath:(NSString *)filePath functionDesi:(NSString *)functionDesi{
    
    NSString *mFile = [NSString stringWithFormat:@"\
                       \n@interface %@ ()\
                       \n\
                       \n@end\n\n",clsName];
    
    NSString *ocm = [filePath stringByReplacingCharactersInRange:NSMakeRange(filePath.length-1, 1) withString:@"m"];

    [mFile yyi_writeTofilePath:ocm anchor:@"@implementation"];
}


@end
